﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;

namespace DAL.Classes
{
    public class Menus
    {
        #region khai bao cac thuoc tinh anh xa
        public int MaMenu { get; set; }
        public string TenMenu { get; set; }
        public Menus() { }
        #endregion

        #region Cac phuong thuc lay du lieu
        public static List<Menus> MenuAll()
        {
            try
            {
                return CBO.FillCollection<Menus>(DataProvider.Instance.ExecuteReader("Menu_LayTatCa"));
            }
            catch
            {
                return null;
            }
        }
        #endregion
    }
}
